package unittestexample;

import java.util.logging.Level;
import java.util.logging.Logger;

public class Start {

    public static void main(String args[]) {

        try {
            Person p = new Person();

            p.setName("Horst");
            System.out.println("" + p.calcAge());
            p.setBirthDateByString("27.09.2005");
            System.out.println("" + p.calcAge());
            System.out.println(p.getBirthDateAsString());
            System.out.println("Date test: p.isCorrectDate('sds'): " + p.isCorrectDate("sds"));
        } catch (BusinessException bex) {
            Logger.getLogger(Start.class.getName()).log(Level.SEVERE, "Ausnahme aufgetreten!", bex);
        }
    }
}
